package com.liucc.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.liucc.common.utils.PageUtils;
import com.liucc.gulimall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author liuchuangchuang
 * @email 2514573000@qq.com
 * @date 2023-11-25 18:11:55
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 以树形结构返回所有商品分类数据
     * @return
     */
    List<CategoryEntity> listWithTree();

    /**
     * 查找当前分类id所在的全路径
     * @param catelogId
     * @return
     */
    Long[] findCatelogPath(Long catelogId);
}

